﻿<?php 
	class BD{
		
		private static $conexao;
		public function __construct(){}
		
		public function conexao(){
			if(is_null(self::$conexao)){
				self::$conexao = new PDO ('mysql:host='.HOST.';dbname='.BD.'',''.USER.'',''.PASS.'');	
			}
		
			return self::$conexao;
		}	
	}
?>